package testDemo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-11-17
 * Time: 21:16
 */

//继承自Person类的子类Student
public class Student extends Person{

    //测试子类能否重写父类的方法
    //@Override
    public void showName(String name) {
        System.out.println("这个人的名字是:" + this.name);
    }

}
